home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / complib / dvector.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-26  |  237 b   |  13 lines

  1. /*
  2. ### 1-d array memory allocation ###
  3. */
  4.  
  5. double *dvector(nl,nh)
  6. int nl,nh;
  7. {
  8.     double *v;
  9.     v = (double *)malloc((unsigned) (nh - nl + 1) * sizeof(double));
  10.     if (!v) system_mess_proc(1,"dvector: allocation failure!");
  11.     return(v - nl);
  12. }
  13.